package com.liy.cloud.common.monitor.service;

import java.util.List;
import java.util.Map;

import com.liy.cloud.common.monitor.entity.JkStationFlow;
import com.das.framework.common.service.IBaseService;

/**
 * 车站客流信息表 Service服务接口定义
 * @ClassName: JkStationFlowService
 * @Description: 
 * @author: shitou
 * @date: 2018-07-04 18:30:14
 */
public interface JkStationFlowService extends IBaseService<JkStationFlow, String>{

	/**
	 * 客流信息统计插入
	 * @author shitou
	 * @param preTime
	 * @param curTime
	 */
	public void insertCountData(String preTime, String curTime);

	/**
	 * 查询最后一次统计的时间
	 * @author shitou
	 * @return
	 */
	public String findPreCountRow();
	
	/**
	 * 查询实时客流
	 * @author shitou
	 * @param flow
	 * @return
	 */
	public List<JkStationFlow> findRealTimeMinute1(JkStationFlow flow, List<String> timeList);
	

	/**
	 * 查询实时客流，按时间范围查询
	 * @author shitou
	 * @param flow
	 * @param timeList
	 * @return
	 */
	public List<JkStationFlow> findRealTimeForRange(JkStationFlow flow, List<Map<String, String>> timeList);
	

	/**
	 * 查询每小时/天/月/年客流
	 * @author shitou
	 * @param flow
	 * @param timeList
	 * @return
	 */
	public List<JkStationFlow> findRealTimeForLike(JkStationFlow flow, List<String> timeList);
}      